package xkp.lesson.springboot_shiro.dao;

import org.apache.ibatis.annotations.Mapper;
import xkp.lesson.springboot_shiro.entity.Role;

import java.util.List;

@Mapper
public interface RoleDao {
    int deleteByPrimaryKey(Integer roleId);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer roleId);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    List<Role> selectRolesByUserId(Integer userId);

}